extends StateBase

##飞船节点
@export var ship: BaseShip

func enter() -> void:
	super.enter()
	ship.animation_player.play("transmit_loop")

func physics_process_update(delta: float) -> void:
	super.physics_process_update(delta)
	if state_machine.state_time > ship.stats.transmit_duration or ship.is_collide_border():
		state_machine.change_state("TransmitEnd")
	
	ship.transmit(ship.stats.transmit_speed, ship.transmit_direction)
